<?php
namespace  app\index\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'tell' => 'require|length:11',
        'pwd'  => 'require|confirm:dbPwd',
    ];

    protected $message = [
        'tell.require' => '手机号必须填写',
        'tell.length' => '手机号不正确',
        'pwd.require' => '请输入密码',
        'pwd.confirm' => '密码不正确',
    ];
}